foregroundColor

Returns a command that allows setting the given foreground color for the selected text in a WYSIWYG editor.

Parameters

color

a new foreground color


open fun foregroundColor(colorName: String): EditorCommand

Returns a command that allows setting the given foreground colorName for the selected text in a WYSIWYG editor.

Parameters

colorName

a new foreground color name

Throws

when colorName is empty or blank